package com.grm.service.impl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.alibaba.fastjson.JSON;
import com.grm.entity.SysLog;
import com.grm.mapper.SysLogMapper;
import com.grm.service.LogService;

@Service
public class LogServiceImpl implements LogService{
	private static Logger logger = LoggerFactory.getLogger(LogServiceImpl.class);
	
	@Autowired
	private SysLogMapper logMapper;

	@Override
	public void insert(SysLog sysLog) {
		logMapper.insert(sysLog);
		logger.info("[LogServiceImpl] insert log success,log = {}",JSON.toJSONString(sysLog));
	}

}
